package com.mentorgen.tools.profile.instrument.bwfilter;

import com.mentorgen.tools.profile.runtime.EntityDictionary;

public class ClassBWFilter extends ClassBandwidthFilterer {

	@Override
	/**
	 * @param arg[0]	classname1
	 * @param arg[1]	classname2
	 */
	public boolean accept(Object... args) {
		if (args.length != 2 || !super.allow(args)) return false;
		
		return ((String)args[0]).equals((String)args[1]) ? false : true;
	}

	@Override
	public boolean canFilter() {
		return (EntityDictionary.getloaderClassDic().size() > 1) ? true : false;
	}

}
